---
title: toolchain add
sidebar_label: add
---

import VersionLabel from '@site/src/components/Docs/VersionLabel';

<VersionLabel version="1.38.0" header />

The `moon toolchain add <id> [plugin]` command will add a toolchain to the workspace by injecting a
configuration block into `.moon/toolchain.yml`. To do this, the command will download the WASM
plugin, extract information, and call initialize functions.

For built-in toolchains, the [plugin locator][locator] argument is optional, and will be derived
from the identifier.

```shell
$ moon toolchain add typescript
```

For third-party toolchains, the [plugin locator][locator] argument is required, and must point to
the WASM plugin.

```shell
$ moon toolchain add custom https://example.com/path/to/plugin.wasm
```

### Arguments

- `<id>` - ID of the toolchain to use.
- `[plugin]` - Optional [plugin locator][locator] for third-party toolchains.

### Options

- `--minimal` - Generate minimal configurations and sane defaults.
- `--yes` - Skip all prompts and enables tools based on file detection.

[locator]: ../../guides/wasm-plugins#configuring-plugin-locations
